package sg.techstudio.suntec.formatter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.support.FormattingConversionServiceFactoryBean;
import org.springframework.stereotype.Component;

@Component("applicationConversionService")
public class ApplicationConversionService extends FormattingConversionServiceFactoryBean {
	
	@Autowired
	private RoleFormatter roleFormatter;
	
	@Override
	protected void installFormatters(FormatterRegistry registry) {
		registry.addFormatter(roleFormatter);
	}
	
}
